package com.xin.entity.shop;

import com.baomidou.mybatisplus.annotation.TableName;
import com.xin.annoations.PhoneNumber;

import javax.validation.constraints.NotNull;
import java.util.Date;

/**
 * 店铺
 */
@TableName("t_org_shop")
public class ShopEntity {
    /**
     * 待审核
     */
    public static final Integer  AUDIT=1;
    /**
     *  审核通过
     */
    public static final Integer APPROVED=2;
    /**
     * 激活成功
     */
    public static final Integer ACTIVATION=3;



    private Long id;

    @NotNull(message = "店铺名称不可以为空")
    private String name;

    @NotNull(message = "店铺联系电话不可以为空")
    @PhoneNumber
    private String tel;

    private Date registerTime;

    private Integer state;

    @NotNull(message = "店铺地址不可以为空")
    private String address;

    @NotNull(message = "店铺logo不可以为空")
    private String logo;


    private Double longitude;

    private Double  dimension;


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getTel() {
        return tel;
    }

    public void setTel(String tel) {
        this.tel = tel;
    }

    public Date getRegisterTime() {
        return registerTime;
    }

    public void setRegisterTime(Date registerTime) {
        this.registerTime = registerTime;
    }

    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getLogo() {
        return logo;
    }

    public void setLogo(String logo) {
        this.logo = logo;
    }

    public Double getLongitude() {
        return longitude;
    }

    public void setLongitude(Double longitude) {
        this.longitude = longitude;
    }

    public Double getDimension() {
        return dimension;
    }

    public void setDimension(Double dimension) {
        this.dimension = dimension;
    }

    @Override
    public String toString() {
        return "ShopEntity{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", tel='" + tel + '\'' +
                ", registerTime=" + registerTime +
                ", state=" + state +
                ", address='" + address + '\'' +
                ", logo='" + logo + '\'' +
                ", longitude=" + longitude +
                ", dimension=" + dimension +
                '}';
    }
}
